package com.djl.zenithbite.common.response;

import com.djl.zenithbite.common.constants.ResponseCodeConstants;

import java.io.Serializable;

/**
 * base response
 * @param <T>
 */
public class BaseResponse<T> implements Serializable {

    public static final String SUCCESS = ResponseCodeConstants.SUCCESS_CODE;

    public static final String FAIL = ResponseCodeConstants.SERVER_ERROR;

    private String code = SUCCESS;

    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
